<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
*  \file
*
*  \brief       BMW SWC StdDiag
*
*  This file is the interfaces part of the software component description of the module StdDiag
*  for usage in the BMW AUTOSAR Core.
*
*  \project     BMW Platform Software
*
*  \copyright   BMW AG 2015 - 2017
*
*  \version     5.4.0
*
*/

/*
*
*  THIS FILE WAS GENERATED. DO NOT MODIFY!
*
*  GENERATOR       : BMW PAGe 1.1.0
*
*  GENERATION TIME : 2018-01-22 11:15:00.657175
*
*/
-->
<AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_4-3-0_STRICT_COMPACT.xsd">
  <AR-PACKAGES>
    <AR-PACKAGE>
      <SHORT-NAME>BMW</SHORT-NAME>
      <AR-PACKAGES>
        <AR-PACKAGE>
          <SHORT-NAME>Platform</SHORT-NAME>
          <AR-PACKAGES>
            <AR-PACKAGE>
            <SHORT-NAME>StdDiag</SHORT-NAME>
              <AR-PACKAGES>
                <AR-PACKAGE>
                  <SHORT-NAME>ImplementationDataTypes</SHORT-NAME>
                  <ELEMENTS>
                    <IMPLEMENTATION-DATA-TYPE>
                      <SHORT-NAME>NormalCommunicationModeType</SHORT-NAME>
                      <CATEGORY>TYPE_REFERENCE</CATEGORY>
                      <SW-DATA-DEF-PROPS>
                        <SW-DATA-DEF-PROPS-VARIANTS>
                          <SW-DATA-DEF-PROPS-CONDITIONAL>
                            <COMPU-METHOD-REF DEST="COMPU-METHOD">/BMW/Platform/StdDiag/CompuMethods/CM_NormalCommunicationModeType</COMPU-METHOD-REF>
                            <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</IMPLEMENTATION-DATA-TYPE-REF>
                          </SW-DATA-DEF-PROPS-CONDITIONAL>
                        </SW-DATA-DEF-PROPS-VARIANTS>
                      </SW-DATA-DEF-PROPS>
                    </IMPLEMENTATION-DATA-TYPE>
                    <IMPLEMENTATION-DATA-TYPE>
                      <SHORT-NAME>StdDiag_LifeCycleRequestType</SHORT-NAME>
                      <CATEGORY>TYPE_REFERENCE</CATEGORY>
                      <SW-DATA-DEF-PROPS>
                        <SW-DATA-DEF-PROPS-VARIANTS>
                          <SW-DATA-DEF-PROPS-CONDITIONAL>
                            <COMPU-METHOD-REF DEST="COMPU-METHOD">/BMW/Platform/StdDiag/CompuMethods/CM_LifeCycleRequest</COMPU-METHOD-REF>
                            <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</IMPLEMENTATION-DATA-TYPE-REF>
                          </SW-DATA-DEF-PROPS-CONDITIONAL>
                        </SW-DATA-DEF-PROPS-VARIANTS>
                      </SW-DATA-DEF-PROPS>
                    </IMPLEMENTATION-DATA-TYPE>
                    <IMPLEMENTATION-DATA-TYPE>
                      <SHORT-NAME>AdtApplicationParameter_ArrayType</SHORT-NAME>
                      <CATEGORY>ARRAY</CATEGORY>
                      <SUB-ELEMENTS>
                        <IMPLEMENTATION-DATA-TYPE-ELEMENT>
                          <SHORT-NAME>data</SHORT-NAME>
                          <CATEGORY>TYPE_REFERENCE</CATEGORY>
                          <!-- maximum size of application specific data is 255 bytes -->
                          <ARRAY-SIZE>255</ARRAY-SIZE>
                          <ARRAY-SIZE-SEMANTICS>FIXED-SIZE</ARRAY-SIZE-SEMANTICS>
                          <SW-DATA-DEF-PROPS>
                            <SW-DATA-DEF-PROPS-VARIANTS>
                              <SW-DATA-DEF-PROPS-CONDITIONAL>
                                <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</IMPLEMENTATION-DATA-TYPE-REF>
                              </SW-DATA-DEF-PROPS-CONDITIONAL>
                            </SW-DATA-DEF-PROPS-VARIANTS>
                          </SW-DATA-DEF-PROPS>
                        </IMPLEMENTATION-DATA-TYPE-ELEMENT>
                      </SUB-ELEMENTS>
                    </IMPLEMENTATION-DATA-TYPE>
                    <IMPLEMENTATION-DATA-TYPE>
                      <SHORT-NAME>UpDownload_ArrayType</SHORT-NAME>
                      <CATEGORY>ARRAY</CATEGORY>
                      <SUB-ELEMENTS>
                        <IMPLEMENTATION-DATA-TYPE-ELEMENT>
                          <SHORT-NAME>data</SHORT-NAME>
                          <CATEGORY>TYPE_REFERENCE</CATEGORY>
                          <!-- ToDo: make this size configurable -->
                          <ARRAY-SIZE>4096</ARRAY-SIZE>
                          <ARRAY-SIZE-SEMANTICS>FIXED-SIZE</ARRAY-SIZE-SEMANTICS>
                          <SW-DATA-DEF-PROPS>
                            <SW-DATA-DEF-PROPS-VARIANTS>
                              <SW-DATA-DEF-PROPS-CONDITIONAL>
                                <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</IMPLEMENTATION-DATA-TYPE-REF>
                              </SW-DATA-DEF-PROPS-CONDITIONAL>
                            </SW-DATA-DEF-PROPS-VARIANTS>
                          </SW-DATA-DEF-PROPS>
                        </IMPLEMENTATION-DATA-TYPE-ELEMENT>
                      </SUB-ELEMENTS>
                    </IMPLEMENTATION-DATA-TYPE>
                  </ELEMENTS>
                </AR-PACKAGE>
                <AR-PACKAGE>
                  <SHORT-NAME>CompuMethods</SHORT-NAME>
                  <ELEMENTS>
                    <COMPU-METHOD>
                      <SHORT-NAME>CM_NormalCommunicationModeType</SHORT-NAME>
                      <CATEGORY>TEXTTABLE</CATEGORY>
                      <COMPU-INTERNAL-TO-PHYS>
                        <COMPU-SCALES>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>DISABLE_RX_AND_TX_NORMAL</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">1</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">1</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>DISABLE_RX_ENABLE_TX_NORMAL</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">2</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">2</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>ENABLE_RX_AND_TX_NORMAL</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">3</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">3</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>ENABLE_RX_DISABLE_TX_NORMAL</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                        </COMPU-SCALES>
                      </COMPU-INTERNAL-TO-PHYS>
                    </COMPU-METHOD>
                    <COMPU-METHOD>
                      <SHORT-NAME>CM_LifeCycleRequest</SHORT-NAME>
                      <CATEGORY>TEXTTABLE</CATEGORY>
                      <COMPU-INTERNAL-TO-PHYS>
                        <COMPU-SCALES>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>STDDIAG_INITIALIZED</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">1</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">1</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>STDDIAG_RUNNING</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                          <COMPU-SCALE>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">2</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">2</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>STDDIAG_STOPPED</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                        </COMPU-SCALES>
                      </COMPU-INTERNAL-TO-PHYS>
                    </COMPU-METHOD>
                  </ELEMENTS>
                </AR-PACKAGE>
                <AR-PACKAGE>
                  <SHORT-NAME>ModeDeclarationGroups</SHORT-NAME>
                  <ELEMENTS>
                    <MODE-DECLARATION-GROUP>
                      <SHORT-NAME>StdDiag_LifeCycle</SHORT-NAME>
                      <CATEGORY>EXPLICIT_ORDER</CATEGORY>
                      <INITIAL-MODE-REF DEST="MODE-DECLARATION">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_LifeCycle/STDDIAG_STOPPED</INITIAL-MODE-REF>
                      <MODE-DECLARATIONS>
                        <MODE-DECLARATION>
                          <SHORT-NAME>STDDIAG_INITIALIZED</SHORT-NAME>
                          <VALUE>0</VALUE>
                        </MODE-DECLARATION>
                        <MODE-DECLARATION>
                          <SHORT-NAME>STDDIAG_RUNNING</SHORT-NAME>
                          <VALUE>1</VALUE>
                        </MODE-DECLARATION>
                        <MODE-DECLARATION>
                          <SHORT-NAME>STDDIAG_STOPPED</SHORT-NAME>
                          <VALUE>2</VALUE>
                        </MODE-DECLARATION>
                      </MODE-DECLARATIONS>
                      <ON-TRANSITION-VALUE>3</ON-TRANSITION-VALUE>
                    </MODE-DECLARATION-GROUP>
                    <MODE-DECLARATION-GROUP>
                      <SHORT-NAME>StdDiag_NormalCommunicationModeGroup</SHORT-NAME>
                      <CATEGORY>EXPLICIT_ORDER</CATEGORY>
                      <INITIAL-MODE-REF DEST="MODE-DECLARATION">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_NormalCommunicationModeGroup/ENABLE_RX_AND_TX_NORMAL</INITIAL-MODE-REF>
                      <MODE-DECLARATIONS>
                        <MODE-DECLARATION>
                          <SHORT-NAME>DISABLE_RX_AND_TX_NORMAL</SHORT-NAME>
                          <VALUE>0</VALUE>
                        </MODE-DECLARATION>
                        <MODE-DECLARATION>
                          <SHORT-NAME>DISABLE_RX_ENABLE_TX_NORMAL</SHORT-NAME>
                          <VALUE>1</VALUE>
                        </MODE-DECLARATION>
                        <MODE-DECLARATION>
                          <SHORT-NAME>ENABLE_RX_AND_TX_NORMAL</SHORT-NAME>
                          <VALUE>2</VALUE>
                        </MODE-DECLARATION>
                        <MODE-DECLARATION>
                          <SHORT-NAME>ENABLE_RX_DISABLE_TX_NORMAL</SHORT-NAME>
                          <VALUE>3</VALUE>
                        </MODE-DECLARATION>
                      </MODE-DECLARATIONS>
                      <ON-TRANSITION-VALUE>4</ON-TRANSITION-VALUE>
                    </MODE-DECLARATION-GROUP>
                    <MODE-DECLARATION-GROUP>
                      <SHORT-NAME>StdDiag_SessionModeGroup</SHORT-NAME>
                      <INITIAL-MODE-REF DEST="MODE-DECLARATION">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_SessionModeGroup/STDDIAG_DEFAULT_SESSION</INITIAL-MODE-REF>
                      <MODE-DECLARATIONS>
                        <MODE-DECLARATION>
                          <SHORT-NAME>STDDIAG_DEFAULT_SESSION</SHORT-NAME>
                        </MODE-DECLARATION>
                        <MODE-DECLARATION>
                          <SHORT-NAME>STDDIAG_OTHER_SESSION</SHORT-NAME>
                        </MODE-DECLARATION>
                      </MODE-DECLARATIONS>
                    </MODE-DECLARATION-GROUP>
                  </ELEMENTS>
                </AR-PACKAGE>
                <AR-PACKAGE>
                  <SHORT-NAME>DataTypeMappingSets</SHORT-NAME>
                  <ELEMENTS>
                    <DATA-TYPE-MAPPING-SET>
                      <SHORT-NAME>StdDiag_DataTypeMappingSet</SHORT-NAME>
                      <MODE-REQUEST-TYPE-MAPS>
                        <MODE-REQUEST-TYPE-MAP>
                          <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/NormalCommunicationModeType</IMPLEMENTATION-DATA-TYPE-REF>
                          <MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_NormalCommunicationModeGroup</MODE-GROUP-REF>
                        </MODE-REQUEST-TYPE-MAP>
                        <MODE-REQUEST-TYPE-MAP>
                          <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</IMPLEMENTATION-DATA-TYPE-REF>
                          <MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_SessionModeGroup</MODE-GROUP-REF>
                        </MODE-REQUEST-TYPE-MAP>
                        <MODE-REQUEST-TYPE-MAP>
                          <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/StdDiag_LifeCycleRequestType</IMPLEMENTATION-DATA-TYPE-REF>
                          <MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_LifeCycle</MODE-GROUP-REF>
                        </MODE-REQUEST-TYPE-MAP>
                      </MODE-REQUEST-TYPE-MAPS>
                    </DATA-TYPE-MAPPING-SET>
                  </ELEMENTS>
                </AR-PACKAGE>
                <AR-PACKAGE>
                  <SHORT-NAME>PortInterfaces</SHORT-NAME>
                  <ELEMENTS>
                    <CLIENT-SERVER-INTERFACE>
                      <SHORT-NAME>ApplicationDataTransfer</SHORT-NAME>
                      <IS-SERVICE>false</IS-SERVICE>
                      <OPERATIONS>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>UploadPreprocess</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameter</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/AdtApplicationParameter_ArrayType</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARRAY-BASE-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameterSize</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint16</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>UploadPostprocess</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameter</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/AdtApplicationParameter_ArrayType</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARRAY-BASE-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameterSize</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint16</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>DownloadPreprocess</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameter</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/AdtApplicationParameter_ArrayType</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARRAY-BASE-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameterSize</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint16</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>DownloadPostprocess</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameter</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/AdtApplicationParameter_ArrayType</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARRAY-BASE-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>parameterSize</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint16</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>Upload</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>blockSequenceCounter</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>data</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/UpDownload_ArrayType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARRAY-BASE-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>length</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint32</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>Download</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>blockSequenceCounter</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>data</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/UpDownload_ArrayType</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARRAY-BASE-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>length</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint32</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>RequestUpload</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>dataFormatIdentifier</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>size</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint32</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>maxBlockLength</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint32</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>RequestDownload</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>dataFormatIdentifier</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint8</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>size</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint32</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>maxBlockLength</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/uint32</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>errorCode</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/Dcm/ImplementationDataTypes/Dcm_NegativeResponseCodeType</TYPE-TREF>
                              <DIRECTION>OUT</DIRECTION>
                              <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_RUNNING</POSSIBLE-ERROR-REF>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_NOT_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>RequestDownloadExit</SHORT-NAME>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>RequestUploadExit</SHORT-NAME>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>CancelOperation</SHORT-NAME>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransfer/E_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                      </OPERATIONS>
                      <POSSIBLE-ERRORS>
                        <APPLICATION-ERROR>
                          <SHORT-NAME>E_RUNNING</SHORT-NAME>
                          <ERROR-CODE>10</ERROR-CODE>
                        </APPLICATION-ERROR>
                        <APPLICATION-ERROR>
                          <SHORT-NAME>E_NOT_OK</SHORT-NAME>
                          <ERROR-CODE>1</ERROR-CODE>
                        </APPLICATION-ERROR>
                        <APPLICATION-ERROR>
                          <SHORT-NAME>E_OK</SHORT-NAME>
                          <ERROR-CODE>0</ERROR-CODE>
                        </APPLICATION-ERROR>
                      </POSSIBLE-ERRORS>
                    </CLIENT-SERVER-INTERFACE>
                    <CLIENT-SERVER-INTERFACE>
                      <SHORT-NAME>ApplicationDataTransferCbk</SHORT-NAME>
                      <IS-SERVICE>false</IS-SERVICE>
                      <OPERATIONS>
                        <CLIENT-SERVER-OPERATION>
                          <SHORT-NAME>OperationFinished</SHORT-NAME>
                          <ARGUMENTS>
                            <ARGUMENT-DATA-PROTOTYPE>
                              <SHORT-NAME>result</SHORT-NAME>
                              <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/boolean</TYPE-TREF>
                              <DIRECTION>IN</DIRECTION>
                            </ARGUMENT-DATA-PROTOTYPE>
                          </ARGUMENTS>
                          <POSSIBLE-ERROR-REFS>
                            <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/BMW/Platform/StdDiag/PortInterfaces/ApplicationDataTransferCbk/E_OK</POSSIBLE-ERROR-REF>
                          </POSSIBLE-ERROR-REFS>
                        </CLIENT-SERVER-OPERATION>
                      </OPERATIONS>
                      <POSSIBLE-ERRORS>
                        <APPLICATION-ERROR>
                          <SHORT-NAME>E_OK</SHORT-NAME>
                          <ERROR-CODE>0</ERROR-CODE>
                        </APPLICATION-ERROR>
                      </POSSIBLE-ERRORS>
                    </CLIENT-SERVER-INTERFACE>
                    <SENDER-RECEIVER-INTERFACE>
                      <SHORT-NAME>ComControlModeRequestInterface</SHORT-NAME>
                      <IS-SERVICE>true</IS-SERVICE>
                      <DATA-ELEMENTS>
                        <VARIABLE-DATA-PROTOTYPE>
                          <SHORT-NAME>requestedMode</SHORT-NAME>
                          <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/NormalCommunicationModeType</TYPE-TREF>
                        </VARIABLE-DATA-PROTOTYPE>
                      </DATA-ELEMENTS>
                    </SENDER-RECEIVER-INTERFACE>
                    <SENDER-RECEIVER-INTERFACE>
                      <SHORT-NAME>ILifeCycleRequest</SHORT-NAME>
                      <IS-SERVICE>true</IS-SERVICE>
                      <DATA-ELEMENTS>
                        <VARIABLE-DATA-PROTOTYPE>
                          <SHORT-NAME>requestMode</SHORT-NAME>
                          <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/BMW/Platform/StdDiag/ImplementationDataTypes/StdDiag_LifeCycleRequestType</TYPE-TREF>
                        </VARIABLE-DATA-PROTOTYPE>
                      </DATA-ELEMENTS>
                    </SENDER-RECEIVER-INTERFACE>
                    <MODE-SWITCH-INTERFACE>
                      <SHORT-NAME>ComControlNormalNotificationInterface</SHORT-NAME>
                      <IS-SERVICE>true</IS-SERVICE>
                      <MODE-GROUP>
                        <SHORT-NAME>CommunicationModeDeclarationGroup</SHORT-NAME>
                        <TYPE-TREF DEST="MODE-DECLARATION-GROUP">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_NormalCommunicationModeGroup</TYPE-TREF>
                      </MODE-GROUP>
                    </MODE-SWITCH-INTERFACE>
                    <MODE-SWITCH-INTERFACE>
                      <SHORT-NAME>SessionChangeIndicationInterface</SHORT-NAME>
                      <IS-SERVICE>true</IS-SERVICE>
                      <MODE-GROUP>
                        <SHORT-NAME>SessionModeDeclarationGroup</SHORT-NAME>
                        <TYPE-TREF DEST="MODE-DECLARATION-GROUP">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_SessionModeGroup</TYPE-TREF>
                      </MODE-GROUP>
                    </MODE-SWITCH-INTERFACE>
                    <MODE-SWITCH-INTERFACE>
                      <SHORT-NAME>ILifeCycle</SHORT-NAME>
                      <IS-SERVICE>false</IS-SERVICE>
                      <MODE-GROUP>
                        <SHORT-NAME>Mode</SHORT-NAME>
                        <TYPE-TREF DEST="MODE-DECLARATION-GROUP">/BMW/Platform/StdDiag/ModeDeclarationGroups/StdDiag_LifeCycle</TYPE-TREF>
                      </MODE-GROUP>
                    </MODE-SWITCH-INTERFACE>
                  </ELEMENTS>
                </AR-PACKAGE>
              </AR-PACKAGES>
            </AR-PACKAGE>
          </AR-PACKAGES>
        </AR-PACKAGE>
      </AR-PACKAGES>
    </AR-PACKAGE>
  </AR-PACKAGES>
</AUTOSAR>
